copyTo(target) copies my functions but need it to copy values